package org.qiyu.live.web.starter.error;

import java.io.Serial;

/**
 * Created with IntelliJ IDEA.
 * Description: 自定义异常,业务端的异常
 * User: sfx
 * Date: 2023-10-22
 * Time: 19:01
 */
public class QiYuErrorException extends RuntimeException{
    @Serial
    private static final long serialVersionUID = -6282376138252518965L;

    // 定义错误码
    private int errorCode;
    // 定义错误信息提示语
    private String errorMsg;

    public QiYuErrorException(int errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}